package com.ls.fw.config.zookeeper.event;

import org.springframework.context.ApplicationEvent;

import com.ls.fw.config.zookeeper.enums.EventType;

public class NodeRefreshEventForClient extends ApplicationEvent {

	private Object event;
	private String eventDesc;
	private String path;
	private String key;
	private String data;
	private EventType eventType;
	
	public NodeRefreshEventForClient(Object source, Object event
			, String eventDesc,String path,String key,String data
			,EventType eventType) {
		super(source);
		this.event = event;
		this.eventDesc = eventDesc;
		this.key = key;
		this.data = data;
		this.path = path;
		this.eventType = eventType;
	}

	public Object getEvent() {
		return this.event;
	}

	public String getEventDesc() {
		return this.eventDesc;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public EventType getEventType() {
		return eventType;
	}

	public void setEventType(EventType eventType) {
		this.eventType = eventType;
	}

	@Override
	public String toString() {
		return "NodeRefreshEventForClient [event=" + event + ", eventDesc=" + eventDesc + ", path=" + path + ", key="
				+ key + ", data=" + data + ", eventType=" + eventType + "]";
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
}
